import React, {
  Component,
  useState,
  useEffect,
} from "react";
import {
  View,
  Text,
} from "react-native";

import styles from './money-cell-sheet';

export default function MoneyCell(props) {
  const {
    income,
    month,
    task_num,
  } = props;
  return (
    <View style={{width:'100%'}}>
      <View style={styles.money}>
        <Text style={{width:80}}>{month}</Text>
        <Text style={{width:80,marginLeft:30}}>{task_num} 单</Text>
        <View style={{flex:1,marginLeft:30,alignItems:'flex-end'}}><Text>{(income/100).toFixed(1)} 豆子</Text></View>
      </View>
    </View>
  )
}